import axios from 'axios'

export const getList = (page, size) =>
  axios.get('http://localhost:3000/invite/list', {
    params: { page, size }
  })

export const deleteById = id =>
  axios.delete(`http://localhost:3000/invite/${id}`)

export const addOneInviteCode = () =>
  axios.get('http://localhost:3000/invite/add')
